﻿using Microsoft.AspNetCore.Mvc;
using orm.efcore.api.Entities;

namespace orm.efcore.api.Controllers
{
    /// <summary>
    /// EF Core 基础控制器
    /// </summary>
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class EfCoreBaseController(CoreDbContext dbContext) : ControllerBase
    {
        public CoreDbContext DbContext { get; } = dbContext;
    }
}
